/**
 * @description Vuex状态管理
 */
import Vue from 'vue'
import Vuex from 'vuex'
import stocks from './modules/stocks'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    loading: false
  },
  mutations: {
    SET_LOADING(state, status) {
      state.loading = status
    }
  },
  modules: {
    stocks
  }
}) 